package com.itheima.zy;


import java.util.Scanner;

public class Text13 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入小明左手中的纸牌：");
        int left = sc.nextInt();
        System.out.println("请输入小明右手中的纸牌：");
        int right = sc.nextInt();
        System.out.println("互换前小明手中的纸牌：" + "左手中的纸牌：" + left + "右手中的纸牌：" + right);
        int temp = left;
        left = right;
        System.out.println("互换后小明手中的纸牌：" + "左手中的纸牌：" + left + "右手中的纸牌：" + temp);




    }

}








